//
//  HBListTableView.h
//  FMSManager
//
//  Created by hongbao.cui on 15-1-8.
//  Copyright (c) 2015年 hongbao.cui. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef enum {
    HBListTableViewTypeTest = 0, // 测试
    HBListTableViewTypeExercise,     //练习
    HBListTableViewTypeResultLook,      //查看
    HBListTableViewTypeResultLookNoAnswer//只能查看不能查看答案
} HBListTableViewType;
@class HBListTableView;
@class HBTableViewHeaderView;
typedef void(^HBListTableViewBlock)(HBListTableView *myListView,HBTableViewHeaderView *headerView);
typedef void (^HBListBlockInput)(HBListTableView *myListView,NSString *result);
typedef void (^HBListBlockDraft)(HBListTableView *myListView,UIButton *btnDraft);
typedef void (^HBListBlockphoto)(HBListTableView *myListView,UIButton *btnPhoto);
@protocol HBListTableViewDelegate <NSObject>
-(void)HBListTableView:(HBListTableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath userAnswer:(NSString *)userAnswer;
@end
@interface HBListTableView : UITableView{
   __weak id<HBListTableViewDelegate>delegate;
}
@property(nonatomic,strong)NSMutableDictionary *loadedCells;
@property(nonatomic,weak)id<HBListTableViewDelegate>hbdelegate;
@property(nonatomic)HBListTableViewType tableType;
@property(nonatomic,copy)HBListTableViewBlock  listViewBlock;
@property(nonatomic,copy)HBListBlockInput  listInputBlock;
@property(nonatomic,copy)HBListBlockDraft  listDraftBlock;
@property(nonatomic,copy)HBListBlockphoto  listPhotoBlock;
//@property(nonatomic)NSInteger rowCount;
@property(nonatomic,copy)NSString *pngPath;
@property(nonatomic)BOOL isShowSimple;
-(void)setModelViewData:(NSDictionary *)dict;
@end
